<?php
include_once("../dao/dbHelper.php"); 
class ServiceUser
{
  public function loginByNameAndPwd($name,$pwd)
  {
    $sql = 'select count(struid) from tbuser where strusername = ? and strpwd = ?;';
    $db = new DbHelper();
    $res = $db->getRecord($sql,array($name,$pwd));
    return $res[0]; 
  }
  protected function getByName($name)
  {
    
  }
  public function __construct(){}
}
 ?>